<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>导航栏</title>
    <style>
        a {
            width: 80px;
            height: 50px;
            background-color: #ff0000;
            /* 转成行内块元素 */
            display: inline-block;
            color: white;
            text-align: center;
            line-height: 50px;
            text-decoration: none;
        }
        a:hover {
            background-color: #ffa500;
        }
    </style>
</head>
<body>
    <a href="#">导航1</a>
    <a href="#">导航2</a>
    <a href="#">导航3</a>
    <a href="#">导航4</a>
    <a href="#">导航5</a>
    
</body>
</html>